#ifndef MEDIALOCATORSETTINGS_H
#define MEDIALOCATORSETTINGS_H

#include <QWidget>
#include "settingsmenuitem.h"
#include "button.h"
#include "medialocator.h"

namespace Ui {
    class MediaLocatorSettings;
}

class MediaLocatorSettings : public SettingsMenuItem {
    Q_OBJECT
public:
    MediaLocatorSettings(QWidget *parent = 0);
    ~MediaLocatorSettings();
    void saveTest();
    void assertSaved();
    void cancelTest();
    void assertCancelled();
public slots:
    void buttonSelected();
    void cancel();
    void save();
protected:
    void changeEvent(QEvent *e);

private:
    MediaLocator * locator;
    void loadFolders();
    Ui::MediaLocatorSettings *ui;
    Button * addButton;
    Button * saveButton;
    Button * cancelButton;
    QList<QWidget *> recentlyAdded;
    QList<QWidget *> recentlyRemoved;
};

#endif // MEDIALOCATORSETTINGS_H
